﻿using Dapper;
using System;
using BCEntity.TMS.EasyMoveSuiteConfigTemplate;
using System.Collections.Generic;
using System.Data;
using System.Text;
using System.Threading.Tasks;

namespace BCData.TMS.EasyMoveSuiteConfigTemplate
{
	/// <summary>
	/// 便捷搬家套餐配置模板
	/// </summary>
	public interface IEasyMoveSuiteConfigTemplateData
	{
		#region  成员方法
		/// <summary>
		/// 是否存在该记录
		/// </summary>
		/// <param name="easyMoveSuiteConfigTemplateId">便捷搬家套餐配置模板Id</param>
		Task<bool> Exists(int easyMoveSuiteConfigTemplateId);
		/// <summary>
		/// 是否存在该记录
		/// </summary>
		/// <param name="vehicleBusinessMappingId">车辆与业务配置Id</param>
		/// <param name="suiteName">套餐名称</param>
		/// <returns></returns>
		Task<bool> Exists(int vehicleBusinessMappingId, string suiteName);
		/// <summary>
		/// 增加便捷搬家套餐配置模板
		/// </summary>
		/// <param name="entity">便捷搬家套餐配置模板信息</param>
		Task<EasyMoveSuiteConfigTemplateEntity> Add(EasyMoveSuiteConfigTemplateEntity entity);
		/// <summary>
		/// 更新便捷搬家套餐配置模板
		/// </summary>
		/// <param name="entity">便捷搬家套餐配置模板信息</param>
		Task<EasyMoveSuiteConfigTemplateEntity> Update(EasyMoveSuiteConfigTemplateEntity entity);
		/// <summary>
		/// 删除便捷搬家套餐配置模板
		/// </summary>
		/// <param name="easyMoveSuiteConfigTemplateId">便捷搬家套餐配置模板Id</param>
		Task<bool> Delete(int easyMoveSuiteConfigTemplateId);
		/// <summary>
		/// 获取便捷搬家套餐配置模板
		/// </summary>
		/// <param name="easyMoveSuiteConfigTemplateId">便捷搬家套餐配置模板Id</param>
		Task<EasyMoveSuiteConfigTemplateEntity> GetEntity(int easyMoveSuiteConfigTemplateId);
		/// <summary>
		/// 获取便捷搬家套餐配置模板
		/// </summary>
		/// <param name="vehicleBusinessMappingId">车辆与业务配置Id</param>
		/// <param name="suiteName">套餐名称</param>
		/// <returns></returns>
		Task<EasyMoveSuiteConfigTemplateEntity> GetEntity(int vehicleBusinessMappingId, string suiteName);
		/// <summary>
		/// 获取便捷搬家套餐配置模板列表
		/// </summary>
		Task<IEnumerable<EasyMoveSuiteConfigTemplateEntity>> GetList();
		/// <summary>
		/// 获取便捷搬家套餐配置模板分页列表
		/// </summary>
		/// <param name="suiteName">套餐名称</param>
		/// <param name="enabled">启用</param>
		/// <param name="start">开始时间</param>
		/// <param name="end">结束时间</param>
		/// <param name="sortName">排序字段</param>
		/// <param name="ascending">升序</param>
		/// <param name="pageIndex">当前页码</param>
		/// <param name="pageSize">每页数据条数</param>
		Task<(IEnumerable<EasyMoveSuiteConfigTemplateEntity>, int)> Query(string suiteName, bool? enabled, DateTime? start, DateTime? end, string sortName, bool? ascending, int pageIndex, int pageSize);
		/// <summary>
		/// 启用便捷搬家套餐配置模板
		/// </summary>
		/// <param name="easyMoveSuiteConfigTemplateId">便捷搬家套餐配置模板Id</param>
		/// <param name="adminId">员工Id</param>
		/// <param name="fullname">员工姓名</param>
		Task<bool> Enabled(int easyMoveSuiteConfigTemplateId, long adminId, string fullname);
		/// <summary>
		/// 禁用便捷搬家套餐配置模板
		/// </summary>
		/// <param name="easyMoveSuiteConfigTemplateId">便捷搬家套餐配置模板Id</param>
		/// <param name="adminId">员工Id</param>
		/// <param name="fullname">员工姓名</param>
		Task<bool> Disabled(int easyMoveSuiteConfigTemplateId, long adminId, string fullname);
		#endregion  成员方法
	}


}